package com.example.springboot_system.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.util.Date;

/**
 * @author xgs
 * @date 2019-5-8
 * @description: 就诊记录表
 */
@Data
@TableName("his_medical_record")
@Accessors(chain = true)
public class MedicalRecord {
    @Column(name = "id")
    private String id;

    @Column(name = "create_datetime")
    private Date createDatetime;

    @Column(name = "condition_description", nullable = true, length = 255)
    private String conditionDescription;  //主诉

    @Column(name = "prescription", nullable = true, length = 500)
    private String prescription;  //处方

    @Column(name = "register_id")
    private String registerId;

    @Column(name = "prescription_num", nullable = false, length = 255)
    private String prescriptionNum;  //处方号

    @Column(name = "drug_cost", nullable = true, length = 50)
    private double drugCost; //药物总费用

    @Column(name = "diagnosis_result", nullable = true, length = 255)
    private String diagnosisResult;  //初步诊断结果

    @Column(name = "medical_order", nullable = true, length = 255)
    private String medicalOrder; //医嘱


}
